package net.akcegaraz.tipleague.shared.domain;

import java.util.ArrayList;

/**
 * Ticket, contains list of bets from one player, ex. Breh Ban-Spa 1, Jab-Sla 1.
 * 
 * @author monckdav
 * 
 */
@SuppressWarnings("serial")
public class Ticket extends DomainObject {
    private Player player = new Player();
    private ArrayList<Bet> bets = new ArrayList<Bet>();

    /**
     * @return the bets
     */
    public ArrayList<Bet> getBets() {
	return bets;
    }

    /**
     * @return the player
     */
    public Player getPlayer() {
	return player;
    }

    @Override
    public String toString() {
	StringBuffer stringBuffer = new StringBuffer();
	stringBuffer.append(player.toString());
	stringBuffer.append(bets.toString());
	return stringBuffer.toString();
    }
}
